package xyc.sjxy.exam.dao.impl;

import xyc.sjxy.exam.pojo.Users;

import java.sql.SQLException;
import java.util.List;

public class UserDaoImpl  extends DbDaoImpl<Users>{
    public Users findByUserName(String userName) throws SQLException {
        String sql="select * from users where userName=?";
        return find(sql,userName);
    }
    public List<Users> findAll() throws SQLException {
        String sql="select * from users";
        return findAll(sql);
    }
}
